package week9.Q1;

public class Animal {
    private int age;


    public Animal(){

    }

    public  Animal(int age){
        this.age=age;

    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void showInfo(){
        System.out.println(age);


    }
}
